/**
 * Created by Baggio on 2018-9-28.
 */
$(function () {

});

function modifiyStaus(tid, status) {
    var postData = {tid: tid, status: status == 1 ? 0 : 1};
    console.log(postData);
    $.ajax({
        type: 'POST',
        data: postData,
        url: '/watchSet/modifyStatus.html',
        dataType: 'json',
        success: function (data) {
            if (data.code != 1) {
                alert(data.msg);
                return;
            }
            alert("设置成功！");
        }
    })

}